<!-- 顶部 -->
<template>
  <div class="top">
    <el-row>
      <el-col :span="24">
        <div class="suspend">
          <router-link to="/overview">
            <div class="head-wrap">煤矿安全智能信息化管控平台</div>
          </router-link>
          <div class="home">
            <img @click="href" src="../assets/images/首页.png">
          </div>
          <router-link to="/topoedit" v-show="name == '电力系统'">
            <div class="topoedit">
              电力组态编辑
            </div>
          </router-link>
        </div>
        <div class="head-sub">{{name}}</div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
  export default {
    props: ['name'],
    methods: {
      href() {
        window.open("http://113.142.196.67:12582/")
      }
    }
  }

</script>

<style lang="scss" scoped>
  .top {
    width: 100%;
    height: 120px;
    position: fixed;
    z-index: 99;

    .suspend {
      position: relative;

      .head-wrap {
        position: absolute;
        top: 10px;
        background-color: orange;
        color: #000;
        width: 100%;
        height: 60px;
        line-height: 60px;
        text-align: center;
        font-size: 24px;
        font-weight: 900;
        background-image: linear-gradient(top, #daae73, #daae73);
        background-repeat: repeat-x;
        cursor: pointer;
        letter-spacing: 2px;
        text-shadow: 0px 1px 0px #999, 0px 2px 0px #888, 0px 3px 0px #777, 0px 4px 0px #666, 0px 5px 0px #555, 0px 6px 0px #444, 0px 7px 0px #333, 0px 8px 7px #001135;
      }

      .home {
        position: absolute;
        top: 24px;
        right: 10px;

        img {
          width: 30px;
        }
      }

      .topoedit {
        position: absolute;
        top: 30px;
        right: 50px;
        color: #fff;
      }
    }


    .head-sub {
      padding-top: 60px;
      background-color: #1e3657;
      color: #98e4f7;
      line-height: 60px;
      text-align: center;
      font-size: 20px;
      cursor: pointer;
    }
  }

</style>
